<h1 class="sysPageHead">
    <span class="sysPageDot"><img src="__PUBLIC__/images/sysListIcon3.png"><span class="textHide">.</span></span>
    投放列表
</h1>

<div class="iotSysmCon"  style="background:#fff" >
    <div class="searchTop">
        <div class="createReport" style="float:left"><a href="{$baseUrl}/Admin/PutRelationship/add">增加投放</a></div>
        <!--<form method="post" action="{$baseUrl}/EnterpriseSys/Activity/index">-->
            <!--<div class="search floatR">-->
                <!--<input type="text" name="title" placeholder="输入活动名称关键字" class="inp" value="{$title}">-->
                <!--<input type="submit" value="搜索" class="sub">-->
            <!--</div>-->
        <!--</form>-->
    </div>

    <div class="iotTableList" style="margin-top:0;padding-top:0px;border-top:20px solid #eaedf1">
        <table border="0" cellspacing="0" cellpadding="0" class="reportTable">
            <thead>
            <tr>
                <th width="2%">ID</th>
                <th width="10%">广告名称</th>
                <th width="10%">网站名称</th>
                <th width="5%">平台与网站分配比例</th>
                <th width="5%">网站与用户分配比例</th>
                <th width="5%">人民币与虚拟币比例</th>
                <th width="10%">状态</th>
                <th width="10%">操作</th>
            </tr>
            </thead>
            <tbody>
            <volist name="data" id="vo">
                <tr>
                    <td>{$vo['rel_id']}</td>
                    <td>{$vo['advertising_name']}</td>
                    <td>{$vo['site_name']}</td>
                    <td>{$vo['platform_and_site']}</td>
                    <td>{$vo['site_and_user']}</td>
                    <td>{$vo['rate']}</td>
                    <td>
                        <?php
                            if ($vo['begin_time'] >= time()) {
                                echo "没有上线";
                            }else {
                                if ($vo['is_offline']) {
                                    echo "已经下线";
                                }else {
                                    echo "在线";
                                }
                            }
                        ?>
                    </td>
                    <td>
                        <a href="{$baseUrl}/Admin/PutRelationship/detail?rel_id={$vo['rel_id']}" class="checkDetails">查看</a>
                        <a href="{$baseUrl}/Admin/PutRelationship/edit?rel_id={$vo['rel_id']}" class="checkDetails">修改</a>
                        <a href='{$baseUrl}/Admin/PutRelationship/delete?rel_id={$vo["rel_id"]}' class="checkDetails">删除</a>
                    </td>
                </tr>
            </volist>
            </tbody>
        </table>
        <div class="tcdPageCode">{$page}</div>
    </div>

</div>